﻿using System;
using System.Drawing;
using System.IO;
using System.Windows.Forms;

namespace CGM
{
	class MeshDataItem : DataItem
	{
		/////////////////////////////////////////////////////////////////////////////
		// public methods

		public MeshDataItem()
			: base("Mesh Files", "mesh")
		{
		}

		/////////////////////////////////////////////////////////////////////////////
		// protected override methods

		protected override bool SaveFile(string _strFilename)
		{
			return false;
		}

		protected override bool OpenFile(string _strFilename)
		{
			return false;
		}

		/////////////////////////////////////////////////////////////////////////////
		// event handlers

		/////////////////////////////////////////////////////////////////////////////
		// private methods

		/////////////////////////////////////////////////////////////////////////////
		// private fields

		/* all the information below needs to go in a file:
		 * 
		 * index buffer:
		 *     uint32 - index data type
		 *     uint32 - index count
		 *     uint32 - usage
		 *     byte[] - index buffer
		 * 
		 * vertex buffer:
		 *     uint32 - number of bytes in vertex buffer
		 *     uint32 - usage
		 *     byte[] - vertex buffer
		 * 
		 * vertex attributes:
		 *     uint32 - number of vertex attributes
		 *     attribute[]
		 *         uint32 - index
		 *         uint32 - size
		 *         uint32 - type
		 *         uint32 - normalized
		 *         uint32 - stride
		 *         uint32 - offset
		 */
	}
}
